<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/12
 * Time: 9:45
 */
$num = 6;
$max = pow(10,$num)-1;
$min = pow(10,$num-1);

echo  rand($min, $max);
